import {post,text} from '@/common/request';
import {requestParams, urlApiClientContent, urlPublicContent} from '../../services/ServerService';

const url = urlApiClientContent + 'app/';

//  签到
export function signIn() {
    return post(url +  requestParams('signIn', {}), null);
}
// 积分记录查询
export function getScoreRecord({pageNo,pageSize}) {
    return post(url +  requestParams('getScoreRecord', {pageNo,pageSize}), null);
}

// 查询已签到数据accumulateSign
export function accumulateSign({date}) {
    return post(url +  requestParams('accumulateSign', {date}), null);
}

// 查询当前签到数据
export function getSignInHome() {
    return post(url +  requestParams('getSignInHome', {}), null);
}
// 查询会员充值信息
export function vipHome({organId=""}) {
    return post(url +  requestParams('vipHome', {organId}), null);
}

// 查询当前账号的会员信息
export function getUserVipInfo() {
    return post(url +  requestParams('getUserVipInfo', {}), null);
}
// 积分兑换会员
export function exchangeVip({organId="",modelType,payType,index}) {
    return post(url +  requestParams('exchangeVip', {organId,modelType,payType,index}), null,true);
}

